package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Classroom;
import cn.wolfcode.crm.query.QueryForObject;

import java.util.List;

public interface ClassroomMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Classroom record);

    Classroom selectByPrimaryKey(Long id);

    List<Classroom> selectAll();

    int updateByPrimaryKey(Classroom record);

    /**
     * 查询列表
     * @param qo
     * @return
     */
    int queryForCount(QueryForObject qo);

    List<Classroom> queryForList(QueryForObject qo);

    /**
     * 改变教室状态
     * @param id
     */
    void changeState(Long id);
}